package com.action.blog.menu;

import java.util.*;

import com.db.blog.*;
import com.db.blog.menu.MenuadManager;
import com.opensymphony.xwork2.ActionContext;

public class MenuadAction {
	List<BlogListVO> mlist;

	private BlogDAO blog;

	public BlogDAO getBlog() {
		return blog;
	}

	public void setBlog(BlogDAO blog) {
		this.blog = blog;
	}

	public List<BlogListVO> getMlist() {
		return mlist;
	}

	public String execute() throws Exception {

		Map session = ActionContext.getContext().getSession();

		mlist = blog.BmBoardList((String) session.get("login"));

		return "success";
	}

}
